import Request from "@/util/request";

export const GetAllRole = (data) => Request({ url: '/api/Role/GetAllRole', method: 'get', params: data });
export const GetRoleList = (data) => Request({ url: '/api/Role/QueryData', method: 'post', data });
export const GetRoleMenuTreeDto = (data) => Request({ url: '/api/Role/GetRoleMenuTreeDto', method: 'get', params: data });
export const AddOrUpdateRoleMenuTreeDto = (data) => Request({ url: '/api/Role/AddOrUpdateRoleMenuTreeDto', method: 'post', data });
export const DeleteRole = (data) => Request({ url: '/api/Role/Delete', method: 'get', params: data });


export const GetButtonPermission = (data) => Request({ url: '/api/Role/GetButtonPermission', method: 'get', params: data });

